/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package consumo.ws;

import consumo.entity.Usuario;
import javax.jws.WebService;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Carlos Taschetto
 */
@WebService()
public class consumoWS {
    @PersistenceContext
    private EntityManager em;

    public Usuario ping(){
        return em.find(Usuario.class, 1);
    }
}
